#ifndef __AQUA_CONTROLLER_H__
#define __AQUA_CONTROLLER_H__ 1

/*
    Analog: A0=14 A1=15 A2=16 A3=17 A4=18 A5=19
    Digital: 13 12 ~11 ~10! ~9! 8  7 ~6! ~5! 4! ~3! 2! 1! 0!

    A4 - SDA
    A5 - SCL

    1 <- TX
    0 -> RX
    13 - led
*/

enum AnalogPin {
    PIN_SERVICE_RANDOM = 3,

    PIN_DATA_SDA = 4,
    PIN_DATA_SCL = 5
};

enum DigitalPin {
    PIN_SERIAL_RX = 0,
    PIN_SERIAL_TX = 1,

    PIN_WATER_TEMPERATURE = 2,
    PIN_WATER_COOLER = 4,

//    PIN_BUTTON_MODE = 7,

    PIN_LED_SECTION1 = 3,
    PIN_LED_SECTION2 = 9,
    PIN_LED_ILLUMINATION = 5,
    PIN_LED_MOON = 11,

    PIN_CONTROL_MODE = 14, // A0
};

const uint8_t LINES_COUNT = 4;
const uint8_t LINES_PINS[LINES_COUNT] = {PIN_LED_SECTION1, PIN_LED_SECTION2, PIN_LED_ILLUMINATION, PIN_LED_MOON};

void setupAquaController();

void loopAquaController();

#endif
